<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>对象属性</title>
	<script type="text/javascript">
		var book = {};
		book.title="book title";
		book.cp={};
		book.cp.title="cp title";
		book.cp.page=1;
		book.cp2={title:'cp title2',page:1000};

		console.info("outline:"+book.title+"\n\t");
		console.info("outline:"+book.cp.title+"\n\t");
		console.info("outline:"+book.cp2.title+"\n\t");

		for( var name in book){
			console.info("attr:"+name);
		}
		var date = new Date();
		date.test="test";
		for( var name in date){
			console.info("Date attr:"+name);
		}

	</script>
</head>
<body>
	
</body>
</html>